<?php

include _ITSTOCK_INCLUDE_DIR_.'html_search.inc.php';
include _ITSTOCK_INCLUDE_DIR_.'html_message.inc.php';
include _ITSTOCK_INCLUDE_DIR_.'html_navigation.inc.php';
include _ITSTOCK_INCLUDE_DIR_.'html_links.inc.php';
include _ITSTOCK_INCLUDE_DIR_.'html_menu.inc.php';
include _ITSTOCK_INCLUDE_DIR_.'html_table_list.inc.php';
include _ITSTOCK_INCLUDE_DIR_.'hardware_html.inc.php';

$itstock_page_info['css'] = array('main.css', 'aside.css', 'float_menu.css', 'page.css', 'table.css', 'lightbox.css', 'form_save.css');
$itstock_page_info['js'] = array('common.js', 'ajax.js', 'request.js', 'lightbox.js', 'search.js', 'settings.js');
$itstock_page_info['title'] = 'Software - IT Stock Tool';
$itstock_page_info['menu_title'] = 'Software';
$itstock_page_info['menu_items'] = array('<label onclick="itstock_page_request(\'add_software\')">Add Software</label>');
$itstock_page_info['search_page'] = 'software';

$_SESSION['on_delete']['software'] = $_SERVER['REQUEST_URI'];
$_SESSION['on_save']['software'] = $_SERVER['REQUEST_URI'];

$structure = itstock_html_search_init('software');
$structure['table_headers'] = array('N&deg;', 'Vendor', 'Product', 'Version', 'Serial', 'Comment', '', '', '');
$structure['table_indexes'] = array('vendor', 'product', 'version', 'serialns', 'comm_s');
$structure['table_actions'] = array(
  array( 'link' => 'main.php?page=software_location&id=%s', 'img' => 'img/location.png', 'title' => 'See Location', 'id' => 'id'),
  array( 'img' => 'img/edit.png', 'onclick' => 'itstock_page_request(\'add_software\', \'%s\')', 'title' => 'Edit', 'id' => 'id' ),
  array( 'link' => 'delete.php?type=software&id=%s', 'img' => 'img/delete.png', 'title' => 'Delete', 'id' => 'id')
);
$structure['table_error'] = 'No software have been added.';

itstock_html_base_header($itstock_page_info);
itstock_html_menu_search($itstock_page_info);
itstock_html_table_list_data($structure, true, true, true);;
itstock_html_base_footer();
?>
